package com.tanjie.blackbean.system.admin.model.permission;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 权限表
 *
 * @author tanjie
 * @since 2022-04-21
 */
@Getter
@Setter
@ToString
@TableName("sys_permission")
@Schema(name = "PermissionPO", description = "权限表")
public class PermissionPO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @Schema(description = "权限名称")
    @TableField("`name`")
    private String name;

    @Schema(description = "菜单模块id")
    @TableField("menu_id")
    private String menuId;

    @Schema(description = "客户端类型")
    @TableField("client_type")
    private Integer clientType;

    @Schema(description = "接口权限标识")
    @TableField("api_perm")
    private String apiPerm;

    @Schema(description = "按钮权限标识")
    @TableField("btn_perm")
    private String btnPerm;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @Schema(description = "创建人")
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    @Schema(description = "修改人")
    @TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
    private String updateBy;


}
